<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	<link rel="stylesheet" type="text/css" href="Public/bootstrap/css/bootstrap.min.css"/>
	{{css file="Public/yangshi/css/index.css"}}
</head>
<body>
	<table class="table table-hover" style="width: 800px;margin:30px auto">
  	<div id="" style="width: 800px;margin:30px auto">
  		 
		<a href="index.php?c=Stu&a=add&cid={{$smarty.get.cid}}"><button type="button" class="btn btn-success">添加同学</button></a>
	</div>
		<tr>
				<td>uid</td>
				<td>姓名</td>
				<td>年龄</td>
				<td>性别</td>
				<!--<td>班级</td>-->
				<td>cid</td>
				<td>操作</td>
			</tr>
			{{foreach from=$data key=k item=v}}
			<tr>
				<td>{{$v.uid}}</td>
				<td>{{$v.username}}</td>
				<td>{{$v.age}}</td>
				<td>{{$v.sex}}</td>
				<!--<td>{{$v.class}}</td>-->
				<td>{{$v.cid}}</td>
				<td>
			
					<a href="index.php?c=Stu&a=edit&uid={{$v.uid}}&cid={{$smarty.get.cid}}"><button type="button" class="btn btn-primary">编辑同学</button></a>
					<a href="index.php?c=Stu&a=delete&uid={{$v.uid}}&cid={{$smarty.get.cid}}"><button type="button" class="btn btn-danger">删除同学</button></a>
				</td>
			</tr>
			{{/foreach}}
</table>
</body>
</html>